import { useSetting } from "../utils/useSetting";
import { watchHourTop } from "./watchHourTop";
import { takeHourTop } from "./takeHourTop";

export function hourTop(start: boolean) {
    const setting = useSetting()
    console.log(setting.category)
    switch (setting.category) {
        case '监控':
            watchHourTop(start)
            break;
        case '抓包':
            takeHourTop(start)
            break;
        default:
            break
    }
}